import { Ref } from "vue";
import { attribute } from "@/api/product/attributeApi/interface.ts";
import { categoryParams } from "@/views/product/attribute/interface/interface.ts";

export interface attributeStore {
  attributeList: Ref<attribute[]>;
  screen: Ref<number>;
  currentAttribute: Ref<attribute>;
  edit: Ref<boolean>;
  fetchAttributeList: (categoryId: categoryParams) => Promise<void>;
  deleteAttribute: (attributeId: number) => Promise<string>;
  changeScreen: (value: number) => void;
  addOrUpdateAttribute: (attr: attribute) => Promise<string>;
  findCurrentAttribute: (attr: attribute) => void;
  changeEdit: (flag: boolean) => void;
}
